<%@ page contentType="text/html;charset=UTF-8" %>
<%@ include file="/WEB-INF/views/include/taglib.jsp"%>
<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <%@ include file="/WEB-INF/views/include/head.jsp"%> 
    <link rel="stylesheet" href="${ctxStatic}/css/login.css">
        <script type="text/javascript">
        //
        function sysLoginForgetPassword03(){
            $("#inputForm").validate({
                submitHandler: function() {
                    window.location.href = '${ctx}/forgetPassword/sysLoginForgetPassword04?password='+$("#password").val()+"&loginName="+$("#loginName").val();
                },
            });
            $("#inputForm").submit(); 
        }
        </script> 
</head>
<body>
<div class="loginBox forgetBox">
    <div class="clearfix forgetTopBox">
        <!-- 输入邮箱 -->
        <p class="forgetTop"><spring:message code="forgetPassword_input_email"/></p>
        <!-- 确认邮件 -->
        <p class="forgetTop"><spring:message code="forgetPassword_confirm_email"/></p>
        <!-- 修改密码 -->
        <p class="forgetTop active"><spring:message code="forgetPassword_modification_password"/></p>
        <!-- 完成修改 -->
        <p class="forgetTop"><spring:message code="forgetPassword_finish_modification"/></p>
    </div>
    <img src="${ctxStatic}/images/forget_03.png">
    <form id="inputForm" method="post">
    <div class="formBox">
    <input type="hidden" name="loginName" id="loginName" value="${user.loginName}">
        <!-- 登录系统账号： -->
        <div class="account"><spring:message code="forgetPassword_login_sys_account"/><span>${user.loginName}</span></div>
        <!--<div class="black">&nbsp;</div>-->
        <!-- 新密码不可以与旧密码重复 -->
        <%-- <div class="verifyTxt"><spring:message code="forgetPassword_password_inconformity"/></div> --%>
        <div class="inputBox">
                <div class="inpBoxSm forget_03_inp">
                    <!-- 请输入新密码 -->
                    <input type="text" name="password" id="password" placeholder="<spring:message code="forgetPassword_please_input_new_password"/>"
                    data-rule-required="true" data-msg-required="<spring:message code="forgetPassword_please_input_new_password"/>"
                    data-rule-banjiao="true" data-msg-banjiao="<spring:message code="forgetPassword_please_input_password_banjiao"/>">
                    <p class="star">*</p>
                </div>
                <div class="inpBoxSm forget_03_inp">
                    <!-- 请确认新密码 -->
                    <input type="text" name="cofirmPassword" id="cofirmPassword" placeholder="<spring:message code="forgetPassword_please_confirm_new_password"/>"
                    data-rule-equalTo="#password" data-msg-equalTo="<spring:message code="forgetPassword_password_confirmPassword_inconformity"/>"
                    data-rule-required="true" data-msg-required="<spring:message code="forgetPassword_please_confirm_new_password"/>"
                    data-rule-banjiao="true" data-msg-banjiao="<spring:message code="forgetPassword_please_input_password_banjiao"/>">
                    <p class="star">*</p>
                </div>
        </div>
        <div class="textC">
            <button class="loginBtn"  type="button" onclick="sysLoginForgetPassword03()"><spring:message code="forgetPassword_next_step"/></button>
        </div>
    </div>
    </form>
</div>
<script src="${ctxStatic}/js/jquery-1.9.1.min.js"></script>
<script>
    var windowH = window.innerHeight
            ||document.documentElement.clientHeight
            ||document.body.clientHeight
    $('.loginBox').css('margin-top',windowH/2 - 280);
</script>
</body>
</html>